<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Index</title>
    <script src="time.js"></script>
</head>
<body>
<h1>登录到系统</h1>
<form method="post" action="login-servlet">
    <hr>
    <div>
        <label>
            <input type="text" placeholder="用户名" name="username">
        </label>
    </div>
    <div>
        <label>
            <input type="password" placeholder="密码" name="password">
        </label>
    </div>
    <div>
        <button>登录</button>
    </div>
</form>

<hr>
<a href="file-servlet" download="yuzhiboyou.png">点我下载高清资源</a>

<div>
    <form method="post" action="file-servlet" enctype="multipart/form-data">
        <div>
            <input type="file" name="test-file">
        </div>
        <div>
            <button>上传文件</button>
        </div>
    </form>
</div>
</body>

<div>
    <hr>
    <div id="time"></div>
    <br>
    <button onclick="updateTime()">更新数据</button>
    <script>
        updateTime()
    </script>
</div>

<div>
    <h2>转发 Forward</h2>
    <form method="post" action="forward-servlet">
        <hr>
        <div>
            <label>
                <input type="text" placeholder="data1" name="data1">
            </label>
        </div>
        <div>
            <label>
                <input type="text" placeholder="data2" name="data2">
            </label>
        </div>
        <div>
            <button>提交</button>
        </div>
    </form>
</div>
</html>